A function which should be included in the manual: dxlStrFormat

Hello

Just found:

string sHelp = dxlStrformat("Exporting %s", "A")
print sHelp "\n";
sHelp = dxlStrformat("Exporting %s of %s", "A", "B")
print sHelp "\n";
sHelp = dxlStrformat("Exporting %s of %s or %s", "A", "B", "C")
print sHelp "\n";
sHelp = dxlStrformat("Exporting %s of %s or %s or %s", "A", "B", "C", "D")
print sHelp "\n";

There seems to be no other function like dxlIntegerFormat or something like this and there seems to be no other parameter like %s.

This may be useful in some cases

Best regards

Wolfgang


Wolfgang Uhr - Tue Apr 14 03:21:09 EDT 2015

Re: A function which should be included in the manual: dxlStrFormat
Richard_Hesketh - Wed Jul 22 08:31:58 EDT 2015

There are some useful variations on those, Wolfgang:

void dxlNumformat( Buffer,string,int,int,int )
void dxlNumformat( Buffer,string,int,int )
void dxlNumformat( Buffer,string,int )

string dxlNumformat( string,int,int,int )
string dxlNumformat( string,int,int )
string dxlNumformat( string,int )

void dxlStrformat( Buffer,string,string,string,string,string )
void dxlStrformat( Buffer,string,string,string,string )
void dxlStrformat( Buffer,string,string,string )
void dxlStrformat( Buffer,string,string )

string dxlStrformat( string,string,string,string,string,string,string )
string dxlStrformat( string,string,string,string,string,string )
string dxlStrformat( string,string,string,string,string )
string dxlStrformat( string,string,string,string )
string dxlStrformat( string,string,string )
string dxlStrformat( string,string )

Standard caveats about using undocumented functions apply. Of course, there's nothing here you can't do anyway - these might just make some code more elegant.